import json from '@rollup/plugin-json'
import resolve from '@rollup/plugin-node-resolve'

// const formats = ['es', 'amd', 'cjs', 'iife', 'umd', 'system']

// export default formats.map(format => ({
//     input: './rollup-demo/index.js',
//     output: {
//         file: `./rollup-demo/dist/${format}.js`,
//         format: format
//     },
//     plugins: [
//         json(),
//         resolve()
//     ]
// }))

export default {
    input: './rollup-demo/index.js',
    output: {
        dir: './rollup-demo/dist',
        format: 'amd'
    },
    plugins: [
        json(),
        resolve()
    ]
}

// npx rollup --config rollup.config.js